#ifndef _REGS_H
#define _REGS_H

/*************************寄存器定义***********************/
/*****RCC基地址0x40021000****/
#define RCC_APB2ENR (*((volatile unsigned int *)0x40021018))
/*****GPIO_A基地址0x40010800*/
#define GPIOA_CRH   (*((volatile unsigned int *)0x40010804))
/*****USART1基地址0x40013800*/
#define USART_SR    (*((volatile unsigned int *)0x40013800))
#define USART_DR    (*((volatile unsigned char *)0x40013804))
#define USART_BRR   (*((volatile unsigned int *)0x40013808))
#define USART_CR1   (*((volatile unsigned int *)0x4001380c))
#define USART_CR2   (*((volatile unsigned int *)0x40013810))
#define USART_CR3   (*((volatile unsigned int *)0x40013814))
/*****NVIC基地址0xE000E100***/
#define NVIC_ISER1  (*((volatile unsigned int *)0xe000e104))
#define NVIC_IPR9   (*((volatile unsigned int *)0xe000e420))
/*****SCB基地址0xE000ED00****/
#define SCB_AIRCR   (*((volatile unsigned int *)0xE000ED0C))

#endif
